/*
 * @Author: Kevin Zhao
 * @Date: 2021-08-08 01:34:55
 * @LastEditTime: 2021-12-11 17:39:48
 * @LastEditors: Kevin Zhao
 * @Description: 订单api
 * @FilePath: \uniapp-pro\src\api\order.ts
 */
import request from '../server/request'
import { sessionIdInterface } from './config/interface'
import { OrderStatus } from './config/enums'

interface modifyOrderInterface extends sessionIdInterface {
    orderFlow: string,
    orderType: OrderStatus
}

/**
 * @description: 获取我的订单
 * @param {sessionIdInterface} params
 * @return {*}
 */
export const getOrderListAPI  = (params: sessionIdInterface):any => {
    return request(params, 'getOrderList')
}

/**
 * @description: 确认上门
 * @param {modifyOrderInterface} params
 * @return {*}
 */
export const modifyMyOrderAPI  = (params: modifyOrderInterface):any => {
    return request(params, 'modifyMyOrder')
}
